<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>05_网格布局-设置单元格的数量和尺寸</title>
        <style>
            .container {
                width: 400px;
                height: 400px;
                background-color: #ccc;

                display: grid;

                grid-template-rows: [r1-start] 100px [r1-end r2-start] 100px [r2-end r3-start] 100px [r3-end];
                grid-template-columns: [c1-start] 100px [c1-end c2-start] 100px [c2-end c3-start] 100px [c3-end];
            }

            .item {
                font-size: 30px;
                background-color: tomato;
            }

            .item01 {
                background-color: aqua;

                grid-row: r1-start / r2-end;
                grid-column: c1-start / c2-end;
            }

        </style>

    </head>
    <body>
        <div class="container">
            <div class="item item01">1</div>
            <div class="item item02">2</div>
            <div class="item item03">3</div>
            <div class="item">4</div>
            <div class="item">5</div>
        </div>
    </body>
</html>